﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MODEL
{
    public  partial class qgzx_cwy_general
    {
        #region 纯的实体对象 + ToPOCO()
        /// <summary>
        /// 纯的实体对象
        /// </summary>
        /// <returns></returns>
        public qgzx_cwy_general ToPOCO()
        {
            qgzx_cwy_general poco = new qgzx_cwy_general()
            {
                GeneralId = this.GeneralId,
                Year = this.Year,
                Background = this.Background,
                Introduce = this.Introduce,
                Contacts = this.Contacts,
                TimeArrange = this.TimeArrange,
                Volunteers = this.Volunteers,
                WageScale = this.WageScale,
                Trafficsituation = this.Trafficsituation,
                TotalPassengers = this.TotalPassengers,
                IsOpen = this.IsOpen,
                BeginTime = this.BeginTime,
                endTime = this.endTime
            };
            return poco;
        }
        #endregion

        #region 1.0 生成 TViewModel 实体对象 +ToViewModel
        /// <summary>
        /// 生成 很纯洁的 实体对象
        /// </summary>
        /// <returns></returns>
        public ViewModel.CwyGeneral ToViewModel()
        {
            ViewModel.CwyGeneral poco = new ViewModel.CwyGeneral()
            {
                GeneralId = this.GeneralId,
                Year = this.Year,
                Background = this.Background,
                Introduce = this.Introduce,
                Contacts = this.Contacts,
                TimeArrange = this.TimeArrange,
                Volunteers = this.Volunteers,
                WageScale = this.WageScale,
                Trafficsituation = this.Trafficsituation,
                TotalPassengers = this.TotalPassengers,
                IsOpen = this.IsOpen,
                BeginTime = this.BeginTime,
                endTime = this.endTime
            };
            return poco;
        }
        #endregion
    }
}
